using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace Wolfut.MirageEE.UI.UIBaseComponents
{
    public partial class ProgressForm_Grid : DevExpress.XtraEditors.XtraForm
    {
        public ProgressForm_Grid()
        {
            InitializeComponent();
        }
        private DevExpress.XtraEditors.ProgressBarControl progressBarControl1;

        public ProgressForm_Grid(Form parent)
        {
            InitializeComponent();
            if (parent != null)
            {
                Left = parent.Left + (parent.Width - Width) / 2;
                Top = parent.Top + (parent.Height - Height) / 2;
            }
            this.Height = progressBarControl1.Height + progressBarControl1.Top * 2 + 4;
        }





        public void SetProgressValue(int position)
        {
            progressBarControl1.Position = position;
            this.Update();
        }
    }
}
